import http from '../utils/quest'

// 获取验证码
export let grtyzm = () =>http.get('/users/getCaptcha?v=next')

// 校验验证码
export let jyyzm = captcha =>http.get('/users/verifyCaptcha',{
    params:{
        captcha
    }
})

// 登录
export let logdl = (username,password) =>http.post('/users/login',
{
    username,
    password
})

// 获取二维码地址
export  let getewm = sid => http.get('/users/getQrcode',{
    params:{
        sid
    }
})

// 微信登入
export let wxsmdl = wechatCode =>http.get('/users/wechatLogin',{
    params:{
        wechatCode
    }
})

// 手机接收短息验证码
export let shouyzm = code => http.post('/users/login?type=sms',{
    
        code
})

// 获取手机验证码
export let jieshouyzm = (phoneNumber) =>http.post('/sms/send',{
    
        phoneNumber	
    
})